﻿#region

using System;
using Lab.Server.Application;
using Microsoft.VisualStudio.TestTools.UnitTesting;

#endregion

namespace Lab.Tests.ApplicationTest {
    public class ApplicationTestBase {
        [TestInitialize]
        public void TestInitialize() {
            DataContext = new DataContextFake();
            var context = new Context(DataContext);
            ApplicationService = new ApplicationService(context);
        }

        protected static ApplicationService ApplicationService { get; private set; }

        protected static DataContextFake DataContext { get; private set; }

        protected static DateTime Tommorow {
            get { return DateTime.Today.AddDays(1); }
        }

        protected DateTime Yesterday {
            get { return DateTime.Today.AddDays(-1); }
        }
    }
}